package com.sam.enumeration;

/**
 * 位运算
 * 
 * @author Administrator
 * 
 */
public class Test {

	public static final int STYLE_BOLD = 1 << 0;

	public static final int STYLE_ITALIC = 1 << 1;

	public void applyStyles(int styles) {

		System.out.println(styles);
	} 

	public static void main(String[] args) {

		Test test = new Test();

		test.applyStyles(Test.STYLE_BOLD | Test.STYLE_ITALIC);

	}

}
